NAME = Red-Project
VERSION_MAJOR = 0
VERSION_MINOR = 0
VERSION_PATCH = 10
VERSION = $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)

CC = g++
PFLAGS = -Wall -g -I. -fPIC
CFLAGS = $(PFLAGS) -IExtern -IEngine -L../linux -LExtern/lib -lUtils -lRed -llua -lsfml-graphics -lsfml-window -lsfml-system

.PHONY: all, red, utils, clean, mrproper

all: 
	@echo "---- Building $(NAME) $(VERSION) ----"
	@make red
	@echo "---- $(NAME) $(VERSION) built ----"
	@make prog
	
prog:
	$(CC) ../msproject/main.cpp -o ../linux/red $(CFLAGS) 
	
red:
	@make -C Engine/

utils: 
	@make -C Utils/

clean: 
	make -C Utils/ clean
	make -C Engine/ clean

mrproper:
	make -C Utils/ mrproper
	make -C Engine/ mrproper
